package com.cn.util;

import java.util.List;

public class Print {

	public static void printArray(List array){
		for(int i=0;i<array.size();i++){
		   System.out.print(array.get(i)+" ");
		}
		System.out.println();
	}
	
	public static void printList(ListNode node){
		ListNode temp=node;
		while(temp!=null){
		    System.out.print(temp.val+" ");
		    temp=temp.next;
		}
		System.out.println();
	}
}
